﻿using System;
using System.Collections.Generic;
using System.Linq;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Audio;
using Microsoft.Xna.Framework.Content;
using Microsoft.Xna.Framework.GamerServices;
using Microsoft.Xna.Framework.Graphics;
using Microsoft.Xna.Framework.Input;
using Microsoft.Xna.Framework.Media;

namespace MyImaginaryFriends_Redux.Screens
{
    class ScriptedEvent
    {
        #region Variables

        public bool b_IsEventActive
        {
            get { return b_isEventActive; }
        }
        bool b_isEventActive;

        #endregion

        public ScriptedEvent()
        {
            //construct and initialize
        }

        public void LoadContent(ContentManager content)
        {
            //possibly no need for a load content either.
        }

        public void Update(GameTime gameTime, GamePlayScreen_Classes.PlayerEntity player)
        {
            //check against the player's collision booleans.

            //example:
            //If the player is colliding with EventTrigger_One
            //Then b_isEventActive = true; PlayEvent(EventTrigger_One)

            //private bool PlayEvent(TileCollision eventtrigger type)
            //{
            //  play the event and return true if the event is finished.
            //}

            //if (player.b_isCollidingWithEvent1Tile)
            //{
            //    b_isEventActive = true;

                

            //    //do first event actions

            //    //wait for event to finish, 

            //    //return control to the player.


            //}


            //check against the play event boolean return, if true, then b_isEventPlaying = false... return control to the player.
        }

        //no draw, unless supposed to be a video, perhaps.

       
    }
}
